@function tint($color, $percentage) {
  @return mix(white, $color, $percentage);
}

@function shade($color, $percentage) {
  @return mix(black, $color, $percentage);
}

@function mdn-color($color, $value) {
  @if $value < 50 {
    @return tint($color, 100 - ($value * 2));
  }
  @if $value > 50 {
    @return shade($color, ($value * 2) - 100);
  }
  @return $color;
}
